/*
 * Copyright (C) 2012  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.launch.progress;

import org.osgi.framework.Bundle;

/**
 * IStatus : The current launch process status.
 * 
 * @author Romain DUBOIS
 */
public interface IStatus {

    /**
     * Get the number of bundles to start in the current start level.
     * 
     * @return The number of bundles to start
     */
    int getBundlesToStart();

    /**
     * Get the current start level.
     * 
     * @return The current level
     */
    int getCurrentLevel();

    /**
     * Get the last started bundle in the current start level.
     * 
     * @return The last started bundle
     */
    Bundle getLastStartedBundle();

    /**
     * Get the spent time since the launch start.
     * 
     * @return The spent time
     */
    long getSpentTime();

    /**
     * Get the spent time in the current start level.
     * 
     * @return The spent time in the start level
     */
    long getSpentTimeInLevel();

    /**
     * Get the number of started bundles in the current start level.
     * 
     * @return The number of started bundles
     */
    int getStartedBundles();

    /**
     * Get the target start level.
     * 
     * @return The target level
     */
    int getTargetLevel();
}
